﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jzy.BLL.SiteAdmin;
using Jzy.Model.SiteAdmin;

namespace Jzy.Web.WebSite.Controls
{
    public partial class About : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ArticleBO article = new ArticleBO();
                IEnumerable<ArticleInfo> list = article.GetDisplayListByCode(1, 1);
                if (list.Count() > 0)
                {
                    litContent.Text = list.First().Content;
                }
            }
        }
    }
}